import request from "@/utils/request";

// 查询用户列表
export function listUser(data) {
  return request({
    url: "api/User/GetUserList_Page",
    method: "post",
    data,
  });
}

// 编辑用户
export function EditUser(data) {
  return request({
    url: "api/User/EditUser",
    method: "post",
    data,
  });
}

// 删除用户
export function DelUser(data) {
  return request({
    url: "api/User/DelUser",
    method: "post",
    data,
  });
}

// 添加用户
export function AddUser(data) {
  return request({
    url: "api/User/AddUser",
    method: "post",
    data,
  });
}

// 获取用户详情
export function GetUserDetail(data) {
  return request({
    url: "api/User/GetUserDetail",
    method: "post",
    data,
  });
}

// 获取全部用户
export function GetAllUserKeyList(data) {
  return request({
    url: "api/Public/GetAllUserKeyList",
    method: "post",
    data,
  });
}

//修改用户密码
export function EditUserPWD(data) {
  return request({
    url: "api/User/EditUserPWD",
    method: "post",
    data,
  });
}
